<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        html {
            font-size: 50px;
        }
        nav {
            width: 15rem;
            margin: 0 auto;
        }

        nav a {
            float: left;
            width: 3rem;
            height: 4rem;
            text-align: center;
            border: 1px red solid;
            box-sizing: border-box;
            text-decoration: none;
            /* font-size: 0; */
        }

        nav a img {
            display: block;
            width: 1.64rem;
            height: 1.64rem;
            margin: 0 auto;
        }

        nav a div {
            font-size: 0.5rem;
            color: #333;
        }
    </style>
</head>

<body>
    <nav>
        <a href="#">
            <img src="./img/nav1.png" alt="">
            <div>爆款手机</div>
        </a>
        <!-- <a href="#">
            <img src="./img/nav1.png" alt="">
            <span>爆款手机</span>
        </a>
        <a href="#">
            <img src="./img/nav1.png" alt="">
            <span>爆款手机</span>
        </a>
        <a href="#">
            <img src="./img/nav1.png" alt="">
            <span>爆款手机</span>
        </a>
        <a href="#">
            <img src="./img/nav1.png" alt="">
            <span>爆款手机</span>
        </a>
        <a href="#">
            <img src="./img/nav1.png" alt="">
            <span>爆款手机</span>
        </a>
        <a href="#">
            <img src="./img/nav1.png" alt="">
            <span>爆款手机</span>
        </a>
        <a href="#">
            <img src="./img/nav1.png" alt="">
            <span>爆款手机</span>
        </a>
        <a href="#">
            <img src="./img/nav1.png" alt="">
            <span>爆款手机</span>
        </a>
        <a href="#">
            <img src="./img/nav1.png" alt="">
            <span>爆款手机</span>
        </a> -->
    </nav>
</body>

</html>